package org.study.event.core.transaction.handler;

import org.study.event.core.common.EventMessage;
import org.study.event.core.eventbus.EventBusManager;

/***
 * 抽线子类,子类需要覆盖对应的方法,若不需关注相应的操作不需实现
 * 
 * @author 陈波
 * @param <Message>
 */
public abstract class AbstractMessageransactionalEventHandler implements TransactionalEventHandler {

	protected EventBusManager eventBusManager;

	public void setEventBusManager(EventBusManager eventBusManager) {
		this.eventBusManager = eventBusManager;
	}

	@Override
	public void afterCommitHandle(EventMessage event) {

	}

	@Override
	public void beforeCommitHandle(EventMessage event) {

	}

	@Override
	public void afterCommptionHandle(EventMessage event) {

	}

	@Override
	public void afterRollBackHandle(EventMessage event) {

	}

}
